import pkg from '@system.package';
export default {
    data: {
        title: 'World'
    },
    hasInstalled(){
        pkg.hasInstalled({
            bundleName: 'com.example.bundlename',
            success: function(data) {
                console.log('package has installed: ' + data);
            },
            fail: function(data, code) {
                console.log('query package fail, code: ' + code + ', data: ' + data);
            },
        });
    }
}
